package com.gklyj.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gklyj.mapper.zixunMapper;
import com.gklyj.pojo.Zixun;
import com.gklyj.service.zixunService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class zixunServiceImpl extends ServiceImpl<zixunMapper, Zixun> implements zixunService {

    @Autowired
    zixunMapper zixunMapper;

    @Override
    public List<Zixun> findZpZixun() {
        return zixunMapper.findListNoAdmin();
    }

    @Override
    public List<Zixun> findAdZixun() {
        return zixunMapper.findListAdmin();
    }

    @Override
    public List<Zixun> ZpsearchZixun(Zixun zixun) {
        return zixunMapper.ZpSearchZixun(zixun);
    }

    @Override
    public List<Zixun> AdsearchZixun(Zixun zixun) {
        return zixunMapper.AdSearchZixun(zixun);
    }

    @Override
    public List<Zixun> ListThisGonggao(String department) {
        return zixunMapper.ListThisGonggao(department);
    }

    @Override
    public List<Zixun> ThisZpGonggaoSearchs(Zixun zixun) {
        return zixunMapper.SearchThisGonggao(zixun);
    }

    @Override
    public Integer GetZixunNumberByTime(String time) {
        return zixunMapper.getZixunNumberByTime(time);
    }

    @Override
    public Integer GetZixunNumber() {
        return zixunMapper.getZixunNumber();
    }

    @Override
    public Integer GetOneDayZixunNumber(String time) {
        return zixunMapper.getOneDayZixunNumber(time);
    }

    @Override
    public List<Zixun> FindOneDepartmentZixunList(String department) {
        return zixunMapper.findOneDepartmentZixunList(department);
    }
}
